# Contributor: Dmitry Zakharchenko <dmitz@disroot.org>
# Maintainer: Dmitry Zakharchenko <dmitz@disroot.org>
pkgname=xwallpaper
pkgver=0.7.4
pkgrel=0
pkgdesc="wallpaper setting utility for X"
url="https://github.com/stoeckmann/xwallpaper"
arch="all"
license="ISC"
makedepends="
	autoconf
	automake
	libjpeg-turbo-dev
	libpng-dev
	libseccomp-dev
	libxpm-dev
	pixman-dev
	xcb-util-image-dev
	"
options="!check" # no test suite
subpackages="$pkgname-doc $pkgname-zsh-completion"
source="$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz"

prepare() {
	default_prepare
	autoreconf -fiv
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
cf4550ec428f2d10964aaa8ca65f670b4fbc8f57c4028e5c3fc02c17b453de33fdb6d4d3d30139d6ec1e056b6a0f14a2e419140a30e89531584953c9357f6586  xwallpaper-0.7.4.tar.gz
"
